import java.io.Console;
import java.io.File;
import java.io.FileFilter;
import java.io.IOException;
import java.util.Arrays;

public class E2 {

  public static void searchFileSystem(File file) {
    if (file.isDirectory()) {
      File[] list = file.listFiles(new FileFilter() {
        @Override
        public boolean accept(File pathname) {
          if (pathname.isDirectory())
            return true;
          long kb = pathname.length() / 1024;
          if (kb > 100 && kb < 200)
            return true;
          return false;
        }
      });
      if (null == list)
        return;
      for (File f : list) {
        searchFileSystem(f);
      }
    } else {
      System.out.println(file.getPath());
    }
  }

  /**
   * @param args
   * @throws IOException
   */
  public static void main(String[] args) throws IOException {
    File tmp = File. createTempFile("ivo", ".tmp");
    // File tmp = File.createTempFile("ivo", ".tmp", new File("."));
    System.out.println("created tmp file " + tmp.getPath());
    System.out.println("does tmp file exsits " + (tmp.exists() ? "YES" : "NO"));
    // can use it also for dirs
    tmp.deleteOnExit();

    tmp.renameTo(new File("ivo.tmp"));
    //System.in.read();
    // can use it also for dirs
    tmp.delete();

    System.in.read();

    System.out.println(Arrays.toString(File.listRoots()));

    if (true)
      return;
    File root = new File("C:\\WINDOWS");
    searchFileSystem(root);
  }

}
